<%--
  Created by IntelliJ IDEA.
  User: liuqiumiao5
  Date: 2023/9/21
  Time: 14:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>文件上传到阿里云示例</title>
</head>
<body>
<!--注意上传文件的form表单  method必须为post   需要设置enctype="multipart/form-data"-->
<form method="post" action="${pageContext.request.contextPath}/UploadOSSServlet"  enctype="multipart/form-data">

    头像：<input type="file" name="userImg"><br/>
    姓名：<input type="text" name="userName"><br/>
    <input type="submit">

</form>

</body>
</html>
